* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif, 微软雅黑;
}
.content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #1e272e;
  color: #d2dae2;
}
.box {
  width: 500px;
  font-size: 18px;
}
.box .item {
  position: relative;
  margin: 3rem 0;
}
.box .item::after,
.box .item::before {
  position: absolute;
  content: "";
  left: 0;
  bottom: -2rem;
  width: 100%;
  height: 16px;
  background: #1f4a59;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
}
.box .item::before {
  box-shadow: 0 0 6px rgba(75, 207, 250, 0.2);
}
.box .item::after {
  background-image: linear-gradient(90deg, #0fbcf9, #34e7e4);
  animation-duration: 1.2s;
  /* 动画结束时停留在to */
  animation-fill-mode: forwards;
  animation-timing-function: ease-in-out;
}
.box .item.html5::after {
  animation-name: html5;
}
.box .item.css3::after {
  animation-name: css3;
}
.box .item.js::after {
  animation-name: js;
}
.box .item.vue::after {
  animation-name: vue;
}
.box .item.wx::after {
  animation-name: wx;
}

@keyframes html5 {
  from {
    width: 0;
  }
  to {
    width: 80%;
  }
}
@keyframes css3 {
  from {
    width: 0;
  }
  to {
    width: 70%;
  }
}
@keyframes js {
  from {
    width: 0;
  }
  to {
    width: 60%;
  }
}
@keyframes vue {
  from {
    width: 0;
  }
  to {
    width: 50%;
  }
}
@keyframes wx {
  from {
    width: 0;
  }
  to {
    width: 40%;
  }
}
